package website.lhc.commo.util;

import website.lhc.commo.exceptions.AssertException;

import java.util.Objects;

/**
 * @ProjectName: springboot
 * @Package: website.lhc.commo.util
 * @ClassName: Assert
 * @Author: lhc
 * @Description: 断言工具类
 * @Date: 2020/7/5 下午 10:31
 */
public class Assert extends org.springframework.util.Assert {

    public static void isNull(Object o, String message) {
        if (Objects.isNull(o)) {
            throw new AssertException(message);
        }
    }
}
